package com.bwf.inner;

/**
 * @Version v1.0
 * @Description: TODO
 * @Author ZHANZHONGXIN
 * @Date 2022/5/12 10:45
 * @Copyright 博为峰
 */

interface Demo {
    public abstract void m1();
}
/*
  匿名内部类
 */
public class Outer04 {
    /*class *//*Inner*//* implements Demo{
        @Override
        public void m1() {
        }
    }*/
    public void show() {
//        new Inner();
        new Demo() {
            @Override
            public void m1() {
            }
        };
    }
}
